package gui;

import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

public class TitleScreenPanel extends JPanel {

	private JLabel label_TS_Title;
	private JPanel panelImage;
	private ImageIcon image;	
	private JLabel imageHolder;
	
	private JButton buttonContinue;
	private JButton btnToM;
	private JButton btnLoad;
	
	/**
	 * Create the panel.
	 */
	public TitleScreenPanel() {
		setLayout(null);
		
		label_TS_Title = new JLabel("Welcome to the Oregon Trail");
		label_TS_Title.setFont(new Font("Tahoma", Font.PLAIN, 30));
		label_TS_Title.setHorizontalAlignment(SwingConstants.CENTER);
		label_TS_Title.setBounds(138, 11, 444, 40);
		add(label_TS_Title);
		
		buttonContinue = new JButton("New Game");
		buttonContinue.setFont(new Font("Tahoma", Font.PLAIN, 11));
		buttonContinue.setBounds(273, 353, 180, 52);
		add(buttonContinue);

		panelImage = new JPanel();
		panelImage.setBounds(32, 69, 662, 272);
		image = new ImageIcon("src/oregonTrailIntro.jpg");
		imageHolder = new JLabel(image);
		panelImage.add(imageHolder);
		add(panelImage);
		
		btnToM = new JButton("Quick Game");
		btnToM.setBounds(83, 353, 180, 52);
		add(btnToM);
		
		btnLoad = new JButton("Load Game");
		btnLoad.setBounds(463, 353, 180, 52);
		add(btnLoad);
	}
	
	/**
	 * @return the btnLoad
	 */
	public JButton getBtnLoad() {
		return btnLoad;
	}

	/**
	 * @return the buttonContinue
	 */
	public JButton getContinueButton(){
		return buttonContinue;
	}
	
	/**
	 * @return the jump to M6 button
	 */
	public JButton getM6Button(){
		return btnToM;
	}
}
